/*
 * ExtentTime.h
 *
 *  Created on: Dec 23, 2011
 *      Author: Netali
 */

#ifndef EXTENTTIME_H_
#define EXTENTTIME_H_

#include "Extent.h"
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <set>
using namespace std;

//Holding the Set of Extents that apear in the time _time
class ExtentTime {

	//fields
	int _time;
	std::set<Extent*>* _timeExtents;

public:
	ExtentTime();
	ExtentTime(int time);
	virtual ~ExtentTime();

	//adding the extent ex to the set of extents _timeExtents
	void addExtent(Extent* ex);
	//return true if the extents exist in the set and false otherwise
	bool isExist(Extent* ex);

	//Getters
	set<Extent*>* getExtents(){return _timeExtents;};
	
	
	

};



#endif /* EXTENTTIME_H_ */
